<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Demo10</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/3.0.2/vue.global.js"></script>
</head>

<body>
    <div id="app"></div>
</body>
<script>
    const app = Vue.createApp({
        template: `
          <h2>欢迎光临红浪漫-请选择您的技师</h2>
          <list v-slot="props"> 
        <span>{{props.item}}</span> 
    </list>
          `
    })
    app.component('List', {
        data() {
            return {
                list: ['大脚', '刘英', '晓红']
            }
        },
        template: `
            <div>
                <slot v-for="item in list" :item="item" />    
            </div>
        `
    })

    const vm = app.mount("#app")
</script>